package com.ycc.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycc.springcloud.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
public interface usermapper extends BaseMapper<User> {

    @Select("select * from user where username like #{username}")
    public User selectByUsername(String username);
}